Add lightweight action trace artifacts#748
Merged
Merged
Conversation
Constraint: Keep tracing dependency-free and opt-in so normal MCP automation behavior is unchanged. Rejected: Adopt Playwright trace or OpenTelemetry SDK directly | too heavy for the first OpenSafari-native artifact contract. Confidence: high Scope-risk: narrow Directive: Extend exporters only after the JSON schema proves useful in live simulator failures. Tested: npm test -- --runTestsByPath tests/unit/action-trace.test.ts; npm run lint -- --quiet src/observability/action-trace.ts src/orchestration/scenario-runner.ts tests/unit/action-trace.test.ts Not-tested: Live simulator trace artifact capture.
This was referenced May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #744.
Direction/scope review
TestScenario.tracePath; default scenario behavior is unchanged.Verification
npm test -- --runTestsByPath tests/unit/action-trace.test.tsnpm run lint -- --quiet src/observability/action-trace.ts src/orchestration/scenario-runner.ts tests/unit/action-trace.test.tsLive validation after merge
tracePathand confirm the JSON records action, device, status, timeout/error, and artifact metadata.tracePathand confirm no trace artifact is emitted.